import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue'

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/projects',
    name: 'Projects',
    component: () => import('../views/Projects.vue')
  },
  {
    path: '/test-cases',
    name: 'TestCases',
    component: () => import('../views/TestCases.vue')
  },
  {
    path: '/reports',
    name: 'Reports',
    component: () => import('../views/Reports.vue')
  },
  {
    path: '/reports/:id',
    name: 'ReportDetail',
    component: () => import('../views/ReportDetail.vue')
  },
  {
    path: '/case-generator',
    name: 'CaseGenerator',
    component: () => import('../views/CaseGenerator.vue')
  },
  {
    path: '/execution-monitor',
    name: 'ExecutionMonitor',
    component: () => import('../views/ExecutionMonitor.vue')
  },
  {
    path: '/data-driven',
    name: 'DataDriven',
    component: () => import('../views/DataDriven.vue')
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router